package com.example.administrator.rxjavarxandroid_retrofit.mvp.contract;

import com.example.administrator.rxjavarxandroid_retrofit.base.IModel;
import com.example.administrator.rxjavarxandroid_retrofit.base.IPresenter;
import com.example.administrator.rxjavarxandroid_retrofit.base.IView;
import com.example.administrator.rxjavarxandroid_retrofit.pojo.TableIp;

import rx.Observable;

/**
 * Created by chenboge on 2016/12/19.
 * 协议类，定制mvp各层接口和实现方法
 */
public class MainContract {

   public interface MainView extends IView{
       void getIpAddressSuccess(TableIp tableIp);
    }

    public interface MainPresenter extends IPresenter<MainView>{
        void getIpAddress(int page);
    }

    public interface MainModel extends IModel{
        Observable<TableIp> getIpAddress(int page);
    }
}
